Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
(e) => getExchangeInput(e.target.value) have type any

how type need for getExchangeInput and getCurrency if get type React.FC give error in other component Type '(amountFirstInput: number) => void' is not assignable to type 'FC'. Types of parameters 'amountFirstInput' and 'props' are incompatible. Type 'string' is not assignable to type 'number'.

import { IExchangeRate } from 'types/IExchangeRate';

import './index.scss';

interface IInputParams {
  amount: number;
  currency: string;
  currencies: IExchangeRate[];
  getExchangeInput: any
  getCurrency: any;
}

const Input: React.FC<IInputParams> = ({amount, currency, currencies, getExchangeInput, getCurrency}) => {
  return (
      <div className='exchangeRates'>
        <input type="number" onChange={(e) => getExchangeInput(e.target.value)} value={amount}></input>
        <select value={currency} onChange={(e) => getCurrency(e.target.value)}>
          {currencies.map((element) => (
            <option key={element.r030} value={element.cc}>{element.cc}</option>
          ))}
        </select>
      </div>
  );
}

export default Input;
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!